package com.ytkj.digitalConstruction.entity.constructionprocess;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 
 * @author iking
 *
 */
public class ConstructionSucceed {
    private Integer id;

    @NotNull(message="操作失败，无指定流程！")
    private Integer flowId;

    private Date date;

    @NotNull(message="操作失败，值班人员为必填项！")
    private Integer duty;

    @NotNull(message="操作失败，内容标题不能为空！")
    private String constructionContent;

    @Size(max=400, message="存在问题信息不得超过400字")
    @NotNull(message="操作失败，存在问题不能为空！")
    private String riskEvent;

    @Size(max=400, message="移交事项信息不得超过400字")
    @NotNull(message="操作失败，移交事项不能为空！")
    private String succeedEvent;

    @NotNull(message="操作失败，接班人员为必填项！")
    private Integer succeed;

    private Integer createBy;

    private Date createDate;

    private Integer updateBy;

    private Date updateDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFlowId() {
        return flowId;
    }

    public void setFlowId(Integer flowId) {
        this.flowId = flowId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getDuty() {
        return duty;
    }

    public void setDuty(Integer duty) {
        this.duty = duty;
    }

    public String getConstructionContent() {
        return constructionContent;
    }

    public void setConstructionContent(String constructionContent) {
        this.constructionContent = constructionContent == null ? null : constructionContent.trim();
    }

    public String getRiskEvent() {
        return riskEvent;
    }

    public void setRiskEvent(String riskEvent) {
        this.riskEvent = riskEvent == null ? null : riskEvent.trim();
    }

    public String getSucceedEvent() {
        return succeedEvent;
    }

    public void setSucceedEvent(String succeedEvent) {
        this.succeedEvent = succeedEvent == null ? null : succeedEvent.trim();
    }

    public Integer getSucceed() {
        return succeed;
    }

    public void setSucceed(Integer succeed) {
        this.succeed = succeed;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}